﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ShowReport.aspx.cs" Inherits="EmployeeCheckIn.ShowReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .TALeft
        {
            text-align: center;
        }
        .button
        {
            font-family: Arial, sans-serif;
            font-size: 12px;
            font-weight: bold;
            width: 65px;
            height: 23px;
        }
        .style1
        {
            width: 93%;
            height: 91px;
        }
        .style9
        {
            height: 28px;
            padding: 20px;
        }
        .style11
        {
            height: 10px;
        }
        .style12
        {
            width: 27px;
        }
        
        .style13
        {
            width: 268435488px;
        }
        .style14
        {
            width: 160px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <table class="style1" align="center">
        <tr>
            <td align="left" class="style9">
                <asp:Label ID="Label1" runat="server" Font-Size="Large" Text="รายงาน" ForeColor="Black"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="style11">
                <table style="width: 100%;">
                    <tr>
                        <td class="style12">
                            &nbsp;
                        </td>
                        <td class="style14">
                            &nbsp;
                        </td>
                        <td align="center" colspan="5" class="style13">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="lb_warn" runat="server" Font-Size="Small" ForeColor="Red" Text="----------ไม่พบข้อมูลการค้นหา----------"
                                Visible="False"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:Button ID="Button1" runat="server" Text="Export Excel" OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <br />
                <asp:GridView ID="GridView2" CssClass="gv" runat="server" Width="100%" AutoGenerateColumns="False" CellPadding="3"
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    EnableModelValidation="True">
                    <Columns>
                        <asp:BoundField DataField="EMP_CODE" HeaderText="รหัสพนักงาน" />
                        <asp:BoundField DataField="EMP_FIRSTNAME" HeaderText="ชื่อ" />
                        <asp:BoundField DataField="EMP_LASTNAME" HeaderText="นามสกุล" />
                        <asp:BoundField DataField="MinDay" HeaderText="วันที่" ItemStyle-CssClass="TALeft"
                            DataFormatString="{0:dd/MM/yyyy}">
                            <ItemStyle CssClass="TALeft" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MaxDay" HeaderText="ถึงวันที่" 
                            DataFormatString="{0:dd/MM/yyyy}" >
                        <ItemStyle CssClass="TALeft" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Sum_Day" HeaderText="จำนวนวันทำงาน" ItemStyle-CssClass="TALeft">
                            <ItemStyle CssClass="TALeft"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Sum_LateDay" HeaderText="สาย(วัน)">
                            <ItemStyle CssClass="TALeft"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="SUM_LATETIME" HeaderText="สายรวม(นาที)">
                            <ItemStyle CssClass="TALeft"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="MoneyTotal" HeaderText="รวมค่าปรับ" ItemStyle-CssClass="TALeft">
                            <ItemStyle CssClass="TALeft"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <br />
                <br />
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" class="style9">
                <asp:Button ID="Button2" runat="server" Text="กลับสู่หน้าหลัก" 
                    onclick="Button2_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
